import request from '@utils/request'

// 获取轮播图信息
const getBanner = (params = {}) => request.get('/banner/list', { params })

// 获取类别
const getGrid = (params = {}) => request.get('/shop/goods/category/all', { params })

// 获取列表
const getLike = (params = {}) => request.post('/shop/goods/list', params)

// 获取详情页面
const getDetailBanner = (params = {}) => request.get('/shop/goods/detail', { params })

// 获取列表页信息
const getList = (params = {}) => request.post('/shop/goods/list', params)
export {
  getBanner,
  getGrid,
  getLike,
  getDetailBanner,
  getList
}
